package com.gupaoedu.vip.prototype;

import java.util.Date;

/**
 * Created by zhaozhonghai on 2017/5/24.
 */
public class Test {

    public static void main(String[] args){
        MingRen mr=new MingRen();//创建鸣人
        JiuWei jw=new JiuWei();
        jw.setName("九尾妖狐");
        mr.setName("鸣人");
        mr.setAge(18);
        mr.setBirthday(new Date());
        mr.setJiuWei(jw);
        MingRen copy=mr.yinfenshen();
        System.out.println("name===="+copy.getName());
        System.out.println("age===="+copy.getAge());
        System.out.println("mr:birthDay===="+mr.getBirthday().getTime());
        System.out.println("copy:birthDay===="+copy.getBirthday().getTime());
        System.out.println("jw===="+copy.getJiuWei().getName());
        System.out.println(mr.getJiuWei()==copy.getJiuWei());
    }
}
